package com.heima.api.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(tags = "敏感词管理",value = "sensitive",description = "敏感词管理controller")
public interface AdSensitiveControllerApi {
    /**
     * 根据名称及分页条件查询频道列表
     * @param sensitiveDto  搜索的请求数据
     * @return
     */
    @ApiOperation("敏感词分页列表查询")
    ResponseResult list(SensitiveDto sensitiveDto);
    @ApiOperation("添加敏感词信息")
    ResponseResult save(AdSensitive adSensitive);
    @ApiOperation("修改敏感词信息")
    ResponseResult update(AdSensitive adSensitive);
    @ApiOperation("根据ID删除敏感词信息")
    ResponseResult deleteById(Integer id);
}
